package org.vectrics.recruiter.job;

import java.util.Collection;
import java.util.Date;
import java.util.HashSet;

import org.apache.log4j.Logger;
import org.vectrics.DataException;
import org.vectrics.common.db.JdbcExecute;
import org.vectrics.hibernate.ThreadProperties;

public class JobSearchUtil {

	private transient static Logger log = Logger.getLogger(JobSearchUtil.class);

	public JobSearchUtil() {
		super();
	}

	public static int findSearchRatingForJob(Long jobId, String searchPhrase) {
		int rating = 0;
		return(100);
	}

	public static Date findJobDate(Long jobId) throws DataException {
		FindJobDateJdbc jdbc = new FindJobDateJdbc(jobId);
		JdbcExecute.execute(ThreadProperties.getSession(), jdbc);
		return(jdbc.getDate());	
	}
	
	public static Collection findJobSearchWords(Job job) {
		HashSet searchWords = new HashSet();
		job.getSearchWords();
        
		return(searchWords);
	}

}
